* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}

.article-publish-container {
    width: 60%;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
#customAlert {
    background-color: white;
    border: 1px solid #ccc;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);*/
    z-index: 1000;
    padding: 15px 10px;
    position: fixed;
    left: 43%;
    top: 10%;

    border-radius: 9px;

}
textarea {
    resize: none; /* 禁用拉伸 */
}

#customAlert #alertMessage {
    /*padding: 10px;*/


    font-size: 14px;
}

#titleInput {
    width: 100%;
    padding: 10px;
    font-size: 20px;
    border: none;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    outline: none;
}

#contentTextarea {
    width: 100%;
    height: 400px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    outline: none;
}

.publish-settings h3 {
    margin-bottom: 10px;
    color: #333;
}

.cover-upload {
    position: relative;
    margin-bottom: 15px;
    display: flex;
}

.cover-upload label {
    display: block;
    margin-bottom: 5px;
    margin-right: 45px;
    display: flex;
    flex-direction: column;
}

.cover-upload input {
    display: none;
}

.cover-upload-placeholder {
    border: 2px dashed #ccc;
    border-radius: 5px;
    /* padding: 30px; */
    text-align: center;
    cursor: pointer;
    margin-bottom: 10px;
    width: 148px;
    font-size: 12px;
    height: 124px;
    text-align: center;
    line-height: 124px;
    color: #b19c9c;
}

.cover-upload-tip {
    font-size: 14px;
    color: #666;
}

#previewButton, #publishButton {
    width: 77px;
    height: 32px;
    border: none;
    border-radius: 5px;
    color: #cbdce3;
    background-color: #edf7ff;
}

#publishButton {
    background-color: #8bb0f5;
    color: white;
}

.dropdown-container {
    margin-bottom: 15px;
    position: relative;
    display: flex;
}

.dropdown-container label {
    display: block;
    margin-bottom: 5px;
    margin-right: 30px;
}

.dropdown-container select {
    width: 200px;
    padding: 8px;
    border: 1px solid #cccccc80;
    border-radius: 3px;
    outline: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="50"><polygon points="0,0 100,0 50,50" style="fill:%23666666;"/></svg>');
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.question-mark-icon {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    color: #999;
}

.tag-container {
    margin-bottom: 15px;
    position: relative;
}

.tag-container label {
    display: block;
    margin-bottom: 5px;
}

.tag-container input {
    width: 200px;
    padding: 8px;
    border: 1px solid #cccccc80;
    border-radius: 3px;
    margin-right: 5px;
    outline: none;
}

.tag-container button {
    padding: 11px 10px;
    /* border: 1px solid #ccc; */
    border-radius: 3px;
    background-color: #f8f9fa;
    cursor: pointer;
    /* outline: none; */
    border: none;
    border-radius: 5px;
}

.tag-container ul {
    list-style-type: none;
    padding: 0;
    margin-top: 5px;
}

.tag-container ul li {
    display: inline-block;
    background-color: #f4f4f4;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.source-container {
    margin-bottom: 15px;
    position: relative;
}

.source-container label {
    display: block;
    margin-bottom: 5px;
}

.source-container input {
    width: 502px;
    padding: 14px;
    border: 1px solid #cccccc80;
    border-radius: 3px;
    margin-right: 5px;
    outline: none;
    font-size: 11px;
}

.source-container button {
    padding: 11px 10px;
    /* border: 1px solid #ccc; */
    border-radius: 3px;
    background-color: #f8f9fa;
    cursor: pointer;
    /* outline: none; */
    border: none;
    border-radius: 5px;
}

.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

.back-to-top,
.word-count,
.markdown-tip,
.draft-info {
    font-size: 14px;
    color: #666;
}

.previewButton,
.publishButton {
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.previewButton {
    background-color: #f4f4f4;
    color: #333;
}

.publishButton {
    background-color: #007bff;
    color: white;
}

#deleteButton {
    width: 77px;
    height: 32px;
    border: none;
    border-radius: 5px;
    margin-top: 92px;
    margin-left: 20px;
    background-color: #8bb0f5;
    color: white;
    display: none;
}

.add-img-outer {
    display: flex;
}

.button {
    display: flex;
    width: 200px;
    justify-content: space-between;
}
